package subject

import (
	"vrcm/src/vrcm/common/models"
)

type EventPaper struct {
	models.Model

	EventId   string `json:"event_id" gorm:"type:varchar(35) comment:活动id"`
	PaperId   int    `json:"paper_id" gorm:"type:bigint;comment:试卷id"`
	TenantId  string `json:"tenant_id" gorm:"type:varchar(50);comment:租户"`
	IsEnable  int    `json:"is_enable" gorm:"type:tinyint;comment:是否开启 1是 2 否"`
	EventType int    `json:"event_type" gorm:"type:tinyint;comment:事件类型 1直播间"`
	models.ModelTime
	models.ControlBy
}

type EventPaperDetail struct {
	models.Model

	EventId   int    `json:"event_id" gorm:"type:bigint unsigned;comment:活动id"`
	PaperId   int    `json:"paper_id" gorm:"type:bigint;comment:试卷id"`
	TenantId  string `json:"tenant_id" gorm:"type:varchar(50);comment:租户"`
	PaperName string `json:"paper_name" gorm:"type:varchar(50);comment:试卷名称"`
	StartTime int64  `json:"start_time" gorm:"type:int;comment:开始时间"`
	EndTime   int64  `json:"end_time" gorm:"type:int;comment:结束时间"`
	models.ModelTime
	models.ControlBy
}

func (EventPaper) TableName() string {
	return "event_paper"
}

func (e *EventPaper) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *EventPaper) GetId() interface{} {
	return e.Id
}
